var projectObj;

//用户管理页面上点击删除按钮弹出删除框(userlist.jsp)
function deleteProject(obj){
	$.ajax({
		type:"GET",
		url:path+"/jsp/project.do",
		data:{method:"delproject",pid:obj.attr("projectid")},
		dataType:"json",
		success:function(data){
			if(data.delResult == "true"){//删除成功：移除删除行
				cancleBtn();
				obj.parents("tr").remove();
			}else if(data.delResult == "false"){//删除失败
				changeDLGContent("对不起，删除项目【"+obj.attr("proName")+"】失败");
			}else if(data.delResult == "notexist"){
				changeDLGContent("对不起，项目【"+obj.attr("proName")+"】不存在");
			}
		},
		error:function(data){
			//alert("对不起，删除失败");
			changeDLGContent("对不起，删除失败");
		}
	});
}



	$(".deleteProject").on("click",function(){
		userObj = $(this);
		changeDLGContent("你确定要删除项目【"+projectObj.attr("proName")+"】吗？");
		openYesOrNoDLG();
	});
	